package com.msmall.community.space.model;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.msmall.base.model.BaseObject;

/**
 * 用户间相互的留言
 * @author zhzy
 *
 */
@Entity
@Table(name="space_words")
public class Words extends BaseObject {

	private static final long serialVersionUID = 1929098748937126513L;

	@Id
	@Column(name="words_id")
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Long wordsId;

	@Column(name="receiver")
	private Long receiver;

	@Column(name="sender")
	private Long sender;
	
	@Column(name="content")
	private String content;

	/**
	 * 其他人是否可见
	 */
	@Column(name="visible")
	private Integer visible;
	/**
	 * 是否阅读了 ConstantDB.READ_STATUS
	 */
	@Column(name="status")
	private Short status;
	
	@Column(name="create_time")
	@Temporal(TemporalType.TIMESTAMP)
	private Date createTime;

	public Words() {
		super();
	}

	public Long getWordsId() {
		return this.wordsId;
	}

	public void setWordsId(Long wordsId) {
		this.wordsId = wordsId;
	}

	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Long getReceiver() {
		return receiver;
	}

	public void setReceiver(Long receiver) {
		this.receiver = receiver;
	}

	public Long getSender() {
		return sender;
	}

	public void setSender(Long sender) {
		this.sender = sender;
	}

	public Short getStatus() {
		return status;
	}

	public void setStatus(Short status) {
		this.status = status;
	}

	public Integer getVisible() {
		return visible;
	}

	public void setVisible(Integer visible) {
		this.visible = visible;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Override
	public boolean equals(Object o) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public int hashCode() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return null;
	}

}
